package com.tongguan.paypos.entity;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Joylive on 2016/12/14 .
 */

public class Manage implements Parcelable{

    private int resId;
    private String name;
    private String fragmentName;

    public Manage() {
    }

    public Manage(int resId, String name, String fragmentName) {
        this.resId = resId;
        this.name = name;
        this.fragmentName = fragmentName;
    }

    protected Manage(Parcel in) {
        resId = in.readInt();
        name = in.readString();
        fragmentName = in.readString();
    }

    public static final Creator<Manage> CREATOR = new Creator<Manage>() {
        @Override
        public Manage createFromParcel(Parcel in) {
            return new Manage(in);
        }

        @Override
        public Manage[] newArray(int size) {
            return new Manage[size];
        }
    };

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFragmentName() {
        return fragmentName;
    }

    public void setFragmentName(String fragmentName) {
        this.fragmentName = fragmentName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(resId);
        dest.writeString(name);
        dest.writeString(fragmentName);
    }
}
